package com.sh.learning.demo.dubbo.service.probider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.google.common.collect.Lists;
import com.sh.learning.demo.common.domain.UserInfo;
import com.sh.learning.demo.common.api.user.UserService;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

/**
 * @author songHai
 * @Classname UserServiceImpl
 * @Description
 * @Date 2025/4/30 17:14
 */
@Service
@Component
public class UserServiceImpl implements UserService {

    @Override
    public List<UserInfo> getUserInfo(String userId) {
        List<UserInfo> userInfos = Lists.newArrayList();
        userInfos.add(UserInfo.builder()
                .userId(12345678999L)
                .userName("张三")
                .email("12345678@qq.com").build());
        return userInfos;
    }
}
